Moved metrics stuff in a separate file
URLs are now read from the file asynchronously