Setting up number function.