A lot of script to transform data