Model creation. Not tested yet.