Possible fix for issue #1165.
Fix #976, might also fix #1191.
Added option to hide controls (fix #812).