Split functions to own script files.