Fully working inplace data generation