Added some events for API