Why not add a callback parameter to removeFromStack?

Callback should be optional else it won't be backward compatible