Added updatePositionCallback
Added destroy function