Remove anon functions