Joined functions to cut down on size