Support gui.init(callback)