Updated stw_engine