Add directory processing action. Try to fix logging