Remove use of err