Add in auto_lock and exception utilities.