Supposed to work, but rewrite is being uncool