Debugging - figured out why singular errors were happening: there must be more equations than variables in the system