Rated 3 out of 5 stars

@Vitaly: Thanks for your solution! It works much better now.