Finally sorted out the x86/x64 issue. Now working on both architectures.