Getting PID and DS stuff working