making fetchInterval a configurable parameter.
Making endpoint configurable