Extract get_path function
Extract `,` functionality into tape