Why not add a callback parameter to removeFromStack?