Changed timeout value to relative time instead of global time