Added support for multiple processes