Gates should now update properly. Strangely the iterator was being created but not passed in the function, so it wasnt fullfilling its purpose.
Merge pull request #515 from Ronny95/gateupdatefix

Gate output trigger fix