Software drain