Moved init code to into init().