Added part 1, setting up connection