Add command history tracking