Why isn't the piddir argument working?