Changed public methods to private.