Changed variable names to more ruby style standards.