Made functions friendly to getting string arguments in place as numbers (for the cmdline tool)