Better lock code