Updated Exclude_Unpublished check