Changed initializer so its compatable with ruby 1.9.3