Added tests. Added method to filter messages by type. Added method to set own timer.