Change prints from statements to function calls