Added function comments for larger functions