Tom's Dec 15 edit of ratexp module