Added comments describing the two methods.