Thanks a lot for the help, I stopped working on the model for a while but now I continued. I tried various approaches to the problem, including the ones suggested here, but soon discovered that there was more to my problem than I initially thought. I made a new thread about it here.
Thanks again for your help π.