Additional helper/debug functions