adding of a few method, and handle the time delay to compute the plan