Added wiring process and process manager
Fixed thread safety on process manager