Make plugin smarter by auto detecting children elements