Lock thread. This is ridiculous