Add getMid() method