Move file channel stuff into new source file and module