Added batch directory conversion functions.