Added resume logic.