Making a note this is really just res < 0 instead of the if's. We can update this later.