Prepares exports code for functionality.