Added more comments describing the helper methods