Moving it out of the (x86) program file and into it's own file seems to have fixed the problem. Thanks!