Moved methods which are not called externally into private section.