Added legacy Ruby code.