Updating paests wasn't resetting expire time
Fixing p_id reference.
Refactored throttling code. Added tests