Fixing multiple declaration of a function.