Getting very close now. Just debugging compiler errors.