Fixed the errors Graczyk pointed out. BFLAG corrected. Still doesn't
work correctly.