Error handling for executed program
Replaced shift register handling procedure