They're not called man's best friend for nothing.