Enable more precise control over autostart functionality and clean up logging code by removing unnecessary boolean parameters.