Rewrite using ember