Add new API for processing files
Fixes to work with new directory structure