Implements 'gate occupied' button.
Bugfixes.