Begin Ruby conversion