Added a limit to the number of metrics queried.