Added confirmation of instanceof.