Seperated the method to get the user's connections