CNC related scripts