At the last possible moment; at the last minute.
Having, characterized by, or done with good judgment or sound thinking.