Added error analytics