Added engine state flag for auto refresh.