Define simple functions on one line only.
Consolidate mkdir calls.