Added general library for event handlers