Attachet rest to eventprocessing