Logic automation