Fixing range input and function names