Updated local.cpp