Add automatic initialization functionality.