Fixed recommendation replacement using JSON response. Need to fix some performance issues with it though.