Implements basic server