Removed clause that reset flag on restart