Changed timeout datatypes to double