Added check if args.size() is not 0, because if it is, weird things will
happen!!