Script works correctly for 4HMG and 4JTV