Get the logic right!