Used defun instead of def + lambda.