Simple polymorphic detection implemented