Moved print command to top.