Moved to references only to explicitly avoid copies. Lambdas have to not be unnamed any longer.