Made some methods private.