Extracted common functions into configuration.functions. Made sure NIC code is being executed