Declared functions static to eliminate linker errors due to multiple definitions.