Fixed building bug. Program seems to be working great, as far as all my tests can tell.