Glad you were able to tweak it to run with your ruby version :) The gravity-switching idea is super cool!