Implemented in Plain Ruby not in Rails as that made more sense.