Added thread to restart at midnight