Removing unneeded anonymous function.