Reviewed and finalized Slice Manager main function