Fixes runtime error and working towards subnet scanning