Optimize more code. Just mutex stuff left.