Port utilities to core

Excepting the config file.