Checking SLAs and writing output to file