Added splits to make code compatible with ruby 1.9