Add store generation function (models and stores does'nt work :-( )