Removed the TLS stuff temporarily due to some blocking problems.