Refactored parseN().