Add throttling (PR #155)

Fixed merge conflicts.
Fixed NPE with 0 or low throttling values.