Add static method for determining type.