Add function to process single file