Adding checks for already processed buckets