Added Server stuff to MainActivity