Added if, else if, and else for console print out.