Everything works, just have to add the timeout for connect