Fixed function declaration bug.