Helper method made private, comments added.