Add timeout functions