Modified syntax to work with older versions of Ruby