Added a command pattern.