Removed redundant anonymous function