Adds debug flag and prints for motion status.