Moved hidden input creation to init.