Added Debug Function