Added 'err' function.