Optimization of the loop and signal find.