Changes to make rex process start a little nicer