Some basic logic.