New method thenGetData was added.