Table Gate implemented. A lot of details changed.