Sanitize code to not spew debug logs everywhere