Added basic argument parsing code.