First version of bin collision check
Works but takes 0.5s for each call