Created copy_files function for easy copying in subinstallers