Added API#config method