Made serverthreads more flexible by using a builder pattern