Added registerBootedCallback