Working version if encoder offsets are turned off.