Send errors to hell
Use case instead of many if statements
Use equality shortcut
Log ping output