Added an extra check to prevent initWW from being called twice.