Made commands more extendible, improved history