Add trim-leaves flag