Added support for FM masks in get_total_capacity().