Prefixed regular expression with 'r'.
Added pinger call to the recover function.