Added assert properly for logic controller