Added all functions to their corresponding files/modules.