Added functions to get bitmask and CIDR formatting.