Added callback to handle attribute bytes