Implemented call events. Probably needs more testing.