Corrected max size by dividing by 4 after PC fixed a bug in my other code which then increased max by 16.