If there is a better way to do this that is more Ruby-esque please consider that option.