Generic add/remove functions for containers