Added function to discern data type.