New public function and private properties

Thank to Flegyas