Update script for mode13