With drain function