Added error and complete callbacks