Middle logic