Got most of select server working