Move functions to init file.