Throw 'render' event
Remove useless properties
Add support for functions