A system includes a robotic arm, memory, and a processor. The processor is configured to access first and second success counters stored in the memory. The first success counter is associated with a first attach algorithm and the second success counter is associated with a second attach algorithm. The processor is further configured to determine whether the first success counter is greater than the second success counter. The processor is further configured to execute the first attach algorithm if the first success counter is greater than the second success counter, and to execute the second attach algorithm if the first success counter is not greater than the second success counter. The processor is further configured to increment the first success counter if the first attach algorithm is successful, and to increment the second success counter if the second attach algorithm is successful.