Moving code into config.