Fix gmnfo to function so it can take param properly