Initial setup for common autorun.