Added console.clear and changed environment.exit to return