Added Doc for the function