Added timeout autolock.