Updates to Ruby code