Removing old code from Function.cpp