Added Reply handling and a basic filter for errors, replies and pings