Changed visibility of some methods to private

Because those methods are only used locally.