Add timeout for whole application