Self invoking function restored