Should do as little as possible when DEBUG is not enabled.