Fixed the number checking logic... I think :)