Synchronise to prevent exception.