Updated to follow ruby coding conventions.