Moved outprint closer to the return statement to reduce the chance of future issues