Add support for $pid_read and $pid_write