Abstract command class.