Changed methods to private.