Work in progress. Function event.init is quite working