Removed pointless error checks.