Added doc to the code.