Automatic actd derivation idea and indentation cleanup