Added support for 'accepts' setting