Adding g() function.