Made callbacks optionnal

Made callbacks optional thus it will avoid some errors or bugs