Added command pattern.