Adds debug methods