Added several comments for added code.