Removed print out for anonymous function after testing it.