Changed to work with ruby version 1.9.2-p320