Seperate functions into respective modules.