I spent a lot of time debugging and I think I made some headway.: