Switched to TCP and added daemon