Check the Gate

End of Code