Altered my lambda function slightly.