feature #3175: Fix bugs. New method to access commands