Removes DEBUG warnings, fixes #29