Implemented core friend establishment functionality