Added a choice() method in the console tools.