Replaced embFormat_type() code.
Merge remote-tracking branch 'upstream/master'