M1453 script refactor