Stupid rewrite