Client now makes use of lambdas to create correct FSM tasks.