Cleaned up ruby stuff