Added logging of ammonia