Use a range to limit the size of build results because we need only the latest two to check if the state change.