Added createCommand() and selectCommand()