Make init function static
Merge pull request #322 from inhies/master

Make init function static