Adding a model for dynamically choosing the dimensions