Improved retry processor, added priority to messages