Renamed Init() method to OnInit()