Adding code to return prediction