Add BaseTagLib and guard clause for required attributes