Updated for array block instead of data and error block