Removed unused onInit() function.