Added some inline comments.