Added comment to the code about the function.