This could be initialized with the correct size by moving the instantation to the constructor.