Modified, return status to js.