Added configure method. Also made debug default to true.