Add EventListener. Modify defined structures to reduce RAM