Added error log write.
Added phase duration data fetch services.
Refactored service code.
Added error log.
Refactored init service.