Added string casting for Events methods. Uncommented error display code.