Rate service

Fixes #1897