Added code to setup upstream