Added logging output.