Move initialize_lambdas(...) to state