including cost charging functions in events.