Add script to set mode on 1571