Missing Code for BinResist in Unit.cpp