Adding repo sync functionality