Improve function documentation by simplifying it