Logic unit