Made printing more paranoid to deal with bad input