Fix pillbox and log transactions