Implemented gatetype box control.