Modified to allow batch processing of maze trial data