function &singleton() { static $instance; if (!isset($instance)) { $instance =& NWNDriver::factory(); } return $instance; }