Set up number function, but still need to tweak it to work correctly.