Adds print statement to DFS