Replaced magic numbers with packet id enum's.