Don't wrap directmode function in lambda.