Changes to switch statement, adds attempt w/STDIN