Less boilerplate
Added Logged event to allow Integration service assign consecutive unique numbers. Refactored Integration a bit (still dirty)