Skeleton for logic state engine