Added anyBegin and anyEnd functions, used for debugging