Set up replacement system.

TODO: Have the include system just use this as well?