Add logic to take list of resources separated by pipe