Add the -r option, patch from Rob with some help from myself.