Added max run duration, for fail safe reasons