Populated the conditions correctly, now to implement the logic