Fixes addExtradata function formatting