Uses anonymous function syntax for better readability