Update for creating a lambda function