How to clean up Serial port buffer

Personally I wouldn't use serial events.