Replaced delegate syntax with easier to read lambda syntax

Lambda syntax is easier on the eyes when reading the code.