Adding a 4sec timeout otherwise the remote API can be too slow