Re-added older style that only worked for positive numbers, just in case it's faster.