Got foundations working ... slowly. Needs to be 1) profiled 2) optimized 3) include functionality