Few comments to explain a couple of chunks of code.