Data attribute auto init

Moved to different branch due to rebase.