Completed logic