This is the server side of Step 6