Check for cids in the processing status
Re-organizing the JS a bit