Added logging support.