Replaced delegate syntax with easier to read lambda syntax