Move logic for training material on server.