Add calibrate command in plugin definition
Implement calibrate function