Added errorBlock