Updated server.dart