First iteration of Sweep2Lock (thanks xdaegholm)