Adds support to lock, unlock and history API methods