Add more comparison logic for 4 cases