Added lambdas to the command pattern