Wow, this is really tricky. I think I will go with the fixed functions for now...
Thank you all laugh