Refactored steam event handler a bit.