Thanks Henrik, your solution seems like a good starting point .