Add push and pop functions to container, object must have ID.