Implemented detection of different data types.