Fixed arg order for factory fn. Fixed hard coded http URLs