Added the feature to invoke previous commands