Corrected the visibility of some methods

> Changed from 'public' to 'private'