Change the connect function in ActivityActor to a lazy argument.