Removed unnecessary error check