Adding more documentation for private functions