Extracted W() to static function