Renamed processattachments method to PreProcessMessage and added some fields