Set inside a timed task to prevent null problems