Training routine for the server