Filling and Emptying Problems