Changed all functions to static

iwin