Adding debug functions...