Minor updates to backend script.