Made sign flag binary instead of ternary