Updated Pragma Marks and Moved Repetitive Tasks to Method for Organisation and DRY compliance

Added Pragma Marks so breadcrumb navigation appears organised
Moved Repetitive tasks to a new method called MakePrediction for organisation and to comply with DRY principle