Gate linking now works. It's preliminary though