Fixed results by changing return to exit();