Removed ruby stuff.
Removing magic numbers.