Better arg checking for DeepLearning, and fix for temporary hack.