Separate messages into files