Initial and minimal version of the script