Cleaned up locks. Stupid threads.