Added recognizing file type, which allows to add tags, depending on file
extension.