Cleaned up ruby stuff.