Added topic locking functionality.