Refactored subprocessing wrapper to a different module for sake's clarity