Made encrypted lock nicer