Adapted ExternalCommand to XML config. Closes #2.