Explaining how the scripts work in detail