Check that ids are retained
Added configurable log levels