Update so that dynamic memory is not required.