Moved prints into respective functions