Moved friends section code to its proper place.