Program to detect local worm movement