Inlined number(). It makes the logic cleaner, I think.