Momentarily abandoned use of subprocess module. Will be re-introduced in future version with exit code analysis.