Adding ability to manage 'resources'.
Making $gateway an optional parameter for system::network.