Change connect to not pass a block, use return value instead.