Added optional debug settings