Complete the camProc factory and refine the scripts