Removing unnecessary object checking.
Privatising methods.