Finding the right logic