Addressed formatting string issues and warnings.