Added getType() methods + cleaned up getLength() methods.