User string values since field can be empty.
Add more threshold values. Move to own function.
Merge pull request #11 from svenmueller/master

Add more thresholds. Minor fixes.