Added errorHandler SP