Added inter-process locking.