Beginning stages of execute_function set up.