Implementing new algorithm for pick up error