Removed to_h method in order to eliminate redundancy