Took out the global; wasn't working