Modified logic based on Carlo's recommendation