Attempt at getting rid of signed logic