Removed unnecessary err variable