Removing global which was mostly unused.