Updates the last few commands