Gets working on ruby 2.x