Added field restriction/permission checks for 'perform_execute' values and other minor changes.