Added 3D engine for training.