Separated data init from file init.