Added published check
Added published check