Split function.R into more specific files.