Added SemiExtednded code