Using timeout method.