Adding support for the new version of activity engine