Fixed some static/public stuff for functions.