Adding initial version of rir.pl script.