Fixed minor formatting issue
Added logic to check MDS IsInitialized status