Combine files and add support for other direction