Removed useless anonymous function wrapper