Annotated the code.