Added a simple prediction algorithm for metrics