Final optimalization for the breadcrumbs code