Refactored service initialization, added logging to SharedSapi