Adding server callbacks to the class.