Removed printlns for debugging.