Added script commands handling