It can be done, but the subnets need to be hardcoded. A fair about of work would need to be done, but not too much... just in 2 or 3 of the functions.
_________________________
How to ask questions the smart way <-----------> Before you ask