Completed the backbone. Only optimization/vis remaininng.