Use ginit to initialise globals