Add a #callback method to the gauge class.