Thanks for the reviews! I've managed to use conditions, which was not easy because I didn't notice there was already a "condition" defined, and that lead to weird error messages. Attached is the updated patch.