Looping added, still bugs every 3rd or so transaction