Expanded function documentation