Added timer to give cache time to empty