Updated for debug messages, 1.0.1