Moved private methods to the bottom + docstring in publish