Hello everyone!
For anyone reading this post and looking for a solution, Miguel and I covered this question in another discussion. The solution can be found under the following link:
https://moodle.org/mod/forum/discuss.php?d=424229#p1712621
Andreas