Switch API to use Config classes