Added state filtering parameters to messages export. Issue: #512