Being a douchebag sometimes yields unintended benefits.