Added processing dir argument