Add startup actions.
Fix a warning.