Fixed problem redeclaring a function.