TODO -- A solution like this to choose the TIMEOUT time: 