Updated with 2 separate mains