BPM almost working, compiles