Further improvements for the statchannel plugin