Lock pinning script