UsefulCmds refactoring