Trivial refactoring: added access modifiers to private methods.