Added gate update handling on server side.