Added instanceof methods