Now error checks for unnecessary values