Use push/pop mechanism for cursors