Removing declared but undefined function