Added isExecuted method.