Please use $wg from App here instead of a global