Finished the getAlterDefinition for Functions