Changing to be compatible with an older version of ruby