Add code to print local variables