Replace custom.cc with Hartls