Added comments for the helper methods.