Refactored. Added c# and ruby style lambda support.