Removed unnecessary error checking.