Added logging and status controls.