Groundwork for rails upgrade.