Good planning can save you from a bad situation