Very elegant work around for the no static function limitation.