This should probably be a top-level var