Need to debug why gauge.number is not set properly - added comments at relevant points