Added function documentation
Rename for consistency