Added function prototypes, and static keywords.
Function renamed to a different style.