Added error profile. Closes #5