Added setDistance and setAngle functions