Added printlns for tracing