Added logging. Added process manager