Script updated and wiring pi fetch added