Added check on required params and set default param 'format'