Moving timeout to main file.