Modifying some things to make it more Ruby style