Fixes Out of thread errors on server side.