Added first revision of the script