FIX: Correct calculation of necessary pages + change from debug size