Server initiliases and enters waiting loop