Modified to be able to choose the format of the feed to be registered.