Fixed very little things.
Removed the private function declaration. It causes errors.