Don't create a larger array than necessary