Fixed usage of timeout var