Made the size of the model shapes dynamic.