Send messages using the pid. Fixes #1