Fixed bugs with script
Added response formats
Fix