Adding support for multiple extension types based off magic number.