Added repo logic