Had to readjust the parameters again, seems to not finish when N >= 56 - the cap is now at 48