Added script preamble