Add ability to pass a promise as data object.