Fixed function not being correctly prototyped