Moved private function into proper #region