Made moving bit smoother and fixed resetting of direction