Added an option for debug output