Position detector is now working