Changed printlns to debugs