Cleanup of push function