Adding docs to the function