The original autopin implementation