Added static variables at the wrong place.