Figured out previous problem, j terms needed to be reset to 0