Added some debug statements before realizing that the branch that is causing issues is mostly disused