Added rseq function.