Added functionality for isOK and choice()