Updated 'mango' script