Shifted timeout into it's own method.