Cleans up code in preparation for movement to an actual page.