Fix some reference errors.
Remove monitor.