Modifed Gate file for easier parsing