Implements a simple server