Addded getExecutedCommand option.