Updating max document size