Function declared but not called and defined