Added logging features.