Refactor mask, unfortunately can't do num IPs in subnet easily