debugging slow goniometer scan