Has to dos for locking