Rate cmd

This PR should simplify the callbacks definition by creating a hidden callbacks argument