Adding timeout to all methods