Added explanation comments.