Try to get dimensions first from TECHMD.
Fix empty batch attempt, and dimension acquisition.