Make requiring diagnostics side effect free