Add toFile parameter
Merge branch 'master' of https://github.com/roar109/service-health