Implements .doc detection