Added processFile method.