Removed redundant error callback