Nit: "globals" should be at the top of the file