Added g: prefix to refer global variable.