Added inputstates to unit