Copy and paste port of my quick unlock tool thing