Import math for util functions.