Fixed function definitions and made new build.