Raw material pre-treatment