Set up PopandReturn funtions