$quotes now works with keys rather than indexes