Allow callable as gauges

Allow to use a simple callable as a gauge.