Added function comments.