Added additional callback parameter so we can access activity entities passed back by request.