Implemented upgrade to 1.8 doors and gates for protection. Debug code
still in.