Add function near (and destructor)