Here's @ines's answer to a similar question I had:
I haven't implemented her suggested code yet but I'm also interested in this.