Made changes to adhere to Rails standards.