Support arbritrary message IDs

Fix #7.