Commands and related methods moved to Commands class.