Add some error measures.
Add CE implementation.