Updated for new Ruby version