Use the callback in connect.