Added wsg timer
added missing initialize of variable