First version to write script