Updated raspberry code