Renaming $key to $slug