Add various view calculation functions.