Added missing callback, hopefully fixed encoding