Split files and link at the top