Added in 5.0 for migrate to ruby-2.1