Refactor to only perform the modified size calculation once