Adding function documentation.