Added comments for helper methods.