Fixing function that should be declared as static.