Add public and static keyword
Fix error : "Function passed by reference"