Working on writing datasets