Changing device callback function to allow a *void