Updated handler initialisation. Ruby 2.0 compatibility