Made print functions return ints so they can be used with do statements