client: Add mathematical stuff