Fixed sign bugs and counter issues with multiply